package com.yale.cxfsoapws.service;

import com.yale.cxfsoapws.model.User;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

/**
 * *service endpoint interface（SEI）
 * RPC接口
 * 如果返回结果时实例类，则targetNamespace必须用http://service.jws/，即http://+SEI倒序报名+/
 * 没有的话可以，targetNamespace可任意指定http://www.donald.service/jws_service/
 *  @author yale
 *  @date 2017/8/16
 *  @version 2.0
 * 接口
 *
 */
@WebService(targetNamespace="/service.jws/"
        //		targetNamespace ="/www.donald.service/jws_service/"
//        endpointInterface="com.yale.cxfsoapws.service.UserService"
)
public interface UserService {

    @WebMethod
    String getName(@WebParam(name = "userId") Long userId);

    @WebMethod
    User getUser(Long userId);

}
